import type { AxiosPromise } from "axios";

export interface ChangeApi {
  phoneEmail(data: PhoneEmailReq): AxiosPromise<boolean>;
  wechatBind(data: WechatBindReq): AxiosPromise<boolean>;
}

// 更换手机邮箱
export interface PhoneEmailReq {
  tenant?: string;
  requestId: string;
  oldValidCode: string;
  newName: string;
  newValidCode: string;
  oldName?: string;
  oldCaptchaId?: string;
  oldCaptchaCode?: string;
  newCaptchaId?: string;
  newCaptchaCode?: string;
}

// 更换微信绑定
export interface WechatBindReq {
  tenant?: string;
  requestId?: string;
  validCode?: string;
  authorizerAppid?: string;
  ticket?: string;
  captchaId?: string;
  captchaCode?: string;
}
